package cn.snowheart.boot.logging;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuwanxiang
 * @version 2019/03/29
 */
@RestController
@RequestMapping("/mutli")
public class MultiLogController {

    private static final org.apache.log4j.Logger log4j = org.apache.log4j.Logger.getLogger(MultiLogController.class);

    private static final org.slf4j.Logger slf4j = org.slf4j.LoggerFactory.getLogger(Slf4jController.class);

    private static final java.util.logging.Logger javaLog = java.util.logging.Logger.getLogger("MultiLogController");

    @RequestMapping("/hello")
    public String hello() {
        log4j.info("this is log4j version 1.x.x");
        slf4j.info("this is slf4j");
        javaLog.info("this is java log");
        return "hello";
    }

}
